		
		<div id="tooltip"></div>
		
		<div id="content_left">
			<?php if(isset($message)) : ?>
			<div class="error_message"><?php echo $message ?></div>
			<?php endif; ?>
			
			<div id="newtask">
				<div><label for="taskcontent" class="title"><?php echo lang('new_task') ?></label></div>
				<div>
					<form action="<?php echo site_url('tasks/add') ?>" method="post">
						<input type="text" id="taskcontent" name="taskcontent" style="width:85%"/>
						<input type="submit" id="btn_addtask" name="btn_addtask" value="<?php echo lang('btn_addtask') ?>"/>
						<input type="hidden" name="action" value="addtask"/>
					</form>
				</div>
			</div>
			
			<div id="div_tasklist">
				<table class="task_table" id="today" cellspacing="0	" cellpadding="5" border="0" width="100%">
				<thead>
					<tr>
						<td colspan="2"><a href="" class="collapse_link minus">&nbsp;</a> <?php echo lang('today') ?></td>
						<td align="right" width="15%"><div id="clockDiv"></div></td>
					</tr>
				</thead>
				<tbody>
					<?php if(@$tasks['today']) : ?>
					<?php 
					foreach( @$tasks['today'] as $t)
					{
						$this->load->view('tasks/one-task', array('task'=>$t), false);
					}
					?>
					<?php endif; ?>
				</tbody>
				</table>
				
				<?php if(@$tasks['yesterday']) : ?>
				<table class="task_table" id="yesterday" cellspacing="0" cellpadding="5" border="0" width="100%">
				<thead>
					<tr>
						<td colspan="2"><a href="" class="collapse_link minus">&nbsp;</a> <?php echo lang('yesterday') ?></td>
						<td align="right" width="15%">&nbsp;</td>
					</tr>
				</thead>
				<tbody>
					<?php foreach($tasks['yesterday'] as $t)				
					{
						$this->load->view('tasks/one-task', array('task'=>$t), false);
					}
					?>
				</tbody>
				</table>
				<?php endif; ?>

				<?php if(@$tasks['before_yesterday']) : ?>
				<table class="task_table" id="before_yesterday" cellspacing="0" cellpadding="5" border="0" width="100%">
				<thead>
					<tr>
						<td colspan="2"><a href="" class="collapse_link minus">&nbsp;</a> <?php echo lang('before_yesterday') ?></td>
						<td align="right" width="15%">&nbsp;</td>
					</tr>
				</thead>
				<tbody>
					<?php foreach($tasks['before_yesterday'] as $t)				
					{
						$this->load->view('tasks/one-task', array('task'=>$t), false);
					}
					?>
				</tbody>
				</table>
				<?php endif; ?>

				<?php if(@$tasks['before_week']) : ?>
				<table class="task_table" id="before_week" cellspacing="0" cellpadding="5" border="0" width="100%">
				<thead>
					<tr>
						<td colspan="2"><a href="" class="collapse_link minus">&nbsp;</a> <?php echo lang('before_week') ?></td>
						<td align="right" width="15%">&nbsp;</td>					
					</tr>
				</thead>
				<tbody>
					<?php foreach($tasks['before_week'] as $t)				
					{
						$this->load->view('tasks/one-task', array('task'=>$t), false);
					}
					?>
				</tbody>
				</table>
				<?php endif; ?>

				<?php if(@$tasks['before_two_weeks']) : ?>
				<table class="task_table" id="before_two_weeks" cellspacing="0" cellpadding="5" border="0" width="100%">
				<thead>
					<tr>
						<td colspan="2"><a href="" class="collapse_link minus">&nbsp;</a> <?php echo lang('before_two_weeks') ?></td>
						<td align="right" width="15%">&nbsp;</td>
					</tr>
				</thead>
				<tbody>
					<?php foreach($tasks['before_two_weeks'] as $t)				
					{
						$this->load->view('tasks/one-task', array('task'=>$t), false);
					}
					?>
				</tbody>
				</table>
				<?php endif; ?>

				<?php if(@$tasks['before_month']) : ?>
				<table class="task_table" id="before_month" cellspacing="0" cellpadding="5" border="0" width="100%">
				<thead>
					<tr>
						<td colspan="2"><a href="" class="collapse_link minus">&nbsp;</a> <?php echo lang('before_month') ?></td>
						<td align="right" width="15%">&nbsp;</td>					
					</tr>
				</thead>
				<tbody>
					<?php foreach($tasks['before_month'] as $t)				
					{
						$this->load->view('tasks/one-task', array('task'=>$t), false);
					}
					?>
				</tbody>
				</table>
				<?php endif; ?>
			</div>
			
			<?php if($total_tasks === MAX_TASKS_VISIBLE_ON_START) : ?>
			<div class="older_tasks">
				<a href="" id="older_tasks_link"><?php echo lang('show_older_tasks') ?></a>
				<span><img id="ajax-loader-tasks" src="/img/ajax-loader-tasks.gif"/></span>
			</div>
			<div id="no_more_old_tasks"></div>
			<?php endif; ?>
		</div>
		<div id="ajaxloader-big"><?php echo lang('deleting') ?><br/><br/><img src="/img/ajax-loader-big.gif"/></div>
		<span style="display:none" id="str_tags"><?php echo $str_tags ?></span>
		<span style="display:none" id="current_tag_id"><?php echo $current_tag_id ?></span>
		<span style="display:none" id="lang"><?php echo $this->lang->lang() ?></span>
		<input type="hidden" name="js_cfg" id="js_cfg" value="<?php echo @$js_cfg ?>"/>